//
//  UserEntity.m
//  UnionRich
//
//  Created by 云天 on 15/3/23.
//  Copyright (c) 2015年 cgc. All rights reserved.
//


#import "UserEntity.h"

@implementation UserEntity

//当前登录用户的信息 为单例模式
+(instancetype)shardUserInfo
{
    static dispatch_once_t pred;
    static UserEntity *currentUser;
    dispatch_once(&pred, ^{
        currentUser = [[UserEntity alloc] init];
        
    });
    return currentUser;
}

+(void)clearAllData
{
    UserEntity *user = [UserEntity shardUserInfo];
    user.error = nil;
    user.error_description = nil;
    user.token_type = nil;
    user.access_token = nil;;
    user.token_type = nil;
    user.loginOrNO = NO;
}



- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    NSLog(@"UndefinedKey = %@", key);
}







@end

